package com.simtop.service;

import com.simtop.pojo.Xt;
import com.simtop.pojo.experiment.Experiment;
import com.simtop.pojo.experiment.ExperimentDynamicVo;
import com.simtop.pojo.experiment.ExperimentReportVo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Administrator
 */
public interface ExperimentService {

    /**
     * 添加实验报告
     * @param experiment
     * @return
     */
    public boolean insertExperiment(Experiment experiment);

    /**
     * 审核实验报告内容
     * @param experiment
     * @return
     */
    public List<String> checkExperiment(Experiment experiment);

    /**
     * 修改实验报告
     * @param experiment
     * @return
     */
    public boolean updateExperiment(Experiment experiment);

    /**
     * 作品动态列表
     * @param message 关键字
     * @return
     */
    public List<ExperimentDynamicVo> getAllDynamic(String message);

    /**
     * 实验报告列表
     * @param userId
     * @param message 关键字
     * @return
     */
    public List<ExperimentReportVo> getAllReport(Integer userId, String message);

    /**
     * 点赞
     * @param userId
     * @param experimentId
     * @return
     */
    public boolean giveLike(Integer userId,Long experimentId);

    /**
     * 取消点赞
     * @param userId
     * @param experimentId
     * @return
     */
    public boolean unGiveLike(Integer userId,Long experimentId);

    /**
     * 删除实验报告
     * @param experimentId
     * @return
     */
    public boolean delete(Long experimentId);

    List<Xt> xtshow();

    void xtupdate(int xtid, String xttitle, String xttype, String xtonly, String xtda);
}
